package com.lemontree.web.serviceImpl;

import com.lemontree.web.dao.RoleMapper;
import com.lemontree.web.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @Author: YLBG-YCY-1325
 * @Description:
 * @Date: 2017/7/12
 */
@Service("roleService")
public class RoleServiceImpl implements RoleService{
    @Autowired
    RoleMapper roleMapper;

    @Override
    public Set<String> getRolesByUserId(Integer userId) {
        return roleMapper.getRolesByUserId(userId);
    }
}
